import { data, RD } from "../../types/cartdemo"

let initialState: data = ['cart']

type Iaction = {
    type: string,
    [T: string]: any
} 

const cartReducer: RD<data, Iaction> = (state = initialState, action) => {
    return [...state]
}

export default cartReducer